
JavaArt Chapter 2. Executing Pixels using Drag-and-Drop

From the website:

  Killer Game Programming in Java
  http://fivedots.coe.psu.ac.th/~ad/jg

  Dr. Andrew Davison
  Dept. of Computer Engineering
  Prince of Songkla University
  Hat yai, Songkhla 90112, Thailand
  E-mail: ad@fivedots.coe.psu.ac.th


If you use this code, please mention my name, and include a link
to the website.

Thanks,
  Andrew

============================

This chapter follows on from 
   "JavaArt Chapter 1: On-the-Fly Dynamic Compilation and Execution"
   http://fivedots.coe.psu.ac.th/~ad/jg/javaArt1/


============================

This directory contains files and sub-directories to be used with 
the One-JAR software:

  *  boot-manifest.mf
       - a manifest file for One-JAR; this version refers to
         the top-level class in ExecutePixels.jar and the
         epSplash.png

  *  epSplash.png
       - a splash screen image

  *  lib/
       - contains a copy of janino.jar

  *  main/
      - contains a copy of ExecutePixels.jar (copied from ExecutePixels/)

  * Comparison.png
      - an image file for testing the One-JAR version of ExecutePixels.jar

----------------------------

Downloading and Using One-JAR

One-JAR is available from http://one-jar.sourceforge.net/
Download the basic One-JAR tool, one-jar-boot-0.96.jar.

After unzipping it, a directory called OneJar/ is created. 

Inside OneJar/:
  * add my directories lib/ and main/
  * replace boot-manifest.mf with my version
  * add epSplash.png

----------------------------

Creating the One-JAR version of ExecutePixels.jar 

Inside OneJar/ type:

> jar cvfm ExecutePixels.jar boot-manifest.mf *

The generated ExecutePixels.jar contains janino.jar as part 
of its resources. ExecutePixels.jar can be moved 
outside of OneJar/, to any directory.

----------------------------

Using the One-Jar version of ExecutePixels.jar 


> java -jar ExecutePixels.jar Comparison.png    


---------
Last updated: 13th February 2009
